<div id="app-container" class="container" myapp="STORE_WECHAT_INFOS_EDIT">
  <div class="">
    <%= search_form_for @q, url: ruiqu_store_friends_path, class: 'form-inline' do |f|%>
      <div class="form-group">
        <input type="text" value="<%= @search_params%>" name="q[name_or_uid_cont]" class="form-control input"  placeholder="请输入公司名称或者系统ID">
      </div>
      <button type="submit" class="btn btn-default btn btn-success">查询</button>
      <%= link_to '添加好友', "#", class: 'btn btn-primary btn active', style: 'float:right', role: 'button' %>
      <a class="btn btn-info btn active" href="/ruiqu/store_friends/apply_list" role="button" style="float:right;margin-right:5px;">好友通知</a>
    <% end %>
  </div>
  <%= hidden_field_tag :authenticity_token, form_authenticity_token, id: 'js-ruiqu-store-friend-index' %>

  <div class="app">
     <div class="app-inner clearfix">
      <div class="widget-list-filter">
        <!-- <%= link_to "添加产品类别", new_ruiqu_store_product_category_path, class: 'ui-btn ui-btn-success' %> -->
        <p class="help-block error-message flash-notice" style=""> <%= notice %></p>
      </div>
         <table id="wechat_table" class="ui-table ui-table-list">
          <thead>
              <tr>
                <th>#</th>
                <th>公司名称</th>
                <th>法人</th>
                <th>系统ID</th>
                <th>联系电话</th>
                <th></th>
                <th>操作</th>
                <th></th>
              </tr>
          </thead>
          <tbody>
              <% @store_friends.each_with_index do |store, i| %>
                <tr>
                  <td>
                    <%= i + 1 %>
                  </td>
                  <td>
                    <%= store.name %>
                  </td>
                  <td> <%= store.legal_person %></td>
                  <td> <%= store.uid %></td>
                  <td> <%= store.phone_number %></td>
                  <td>

                  </td>
                  <td>
                    <%= link_to "公司商城", sales_store_products_path(store), target: "_blank" %>
                    <%= link_to '详情', ruiqu_store_friend_path(store), style: "margin-left: 10px;margin-right:10px;" %>
                    <!-- <td><%= link_to '图片', new_ruiqu_store_product_path(store)%></td> -->
                    <%= link_to '删除好友', "#remove_friend", class: 'js-to-remove-friend', data: {id: store.id}%>
                  </td>
                  <td>

                  </td>
                </tr>
              <% end %>
          </tbody>
        </table>
      </div>
  </div>

</div>
